import thunk from 'redux-thunk';
import { createStore, applyMiddleware } from 'redux';
import { createLogger } from 'redux-logger';
import rootReducers from '../reducer/Reducer';

const middlewares = [thunk, createLogger()];

const createStoreWithMiddlewares = applyMiddleware(...middlewares)(createStore);
let store = createStoreWithMiddlewares(rootReducers);
export default store;
